package com.jt.common.vo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.jt.common.utils.DateConverter;
import com.jt.sys.entity.SysDept;

public class SysUserDeptResult implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3720062967489912501L;
	private Integer id;
	private String username;
	private String password;//MD5加密
	private String salt;//盐值加密
	private String email;
	private String mobile;
	private Byte valid=1;//默认值是Null
	/*private Integer deptId;*/
	private Date createdTime;
	private Date modifiedTime;
	private String createdUser;
	private String modifiedUser;
	private SysDept sysDept;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSalt() {
		return salt;
	}
	public void setSalt(String salt) {
		this.salt = salt;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Byte getValid() {
		return valid;
	}
	public void setValid(Byte valid) {
		this.valid = valid;
	}
	/*public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}*/
	/**
	 * 在控制层将次对象转化为json串时,此时会调用对象的get方法,当检测到get方法上有@JsonSerialize
	 * 注解时,会调用方法转化时间
	 * @return
	 */
	@JsonSerialize(using=DateConverter.class)
	public Date getCreatedTime() {
		return createdTime;
	}
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	@JsonSerialize(using=DateConverter.class)
	public Date getModifiedTime() {
		return modifiedTime;
	}
	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}
	public String getCreatedUser() {
		return createdUser;
	}
	public void setCreatedUser(String createdUser) {
		this.createdUser = createdUser;
	}
	public String getModifiedUser() {
		return modifiedUser;
	}
	public void setModifiedUser(String modifiedUser) {
		this.modifiedUser = modifiedUser;
	}
	public SysDept getSysDept() {
		return sysDept;
	}
	public void setSysDept(SysDept sysDept) {
		this.sysDept = sysDept;
	}
	
}
